<template>
  <div class="dashboard-editor-container">
    <panel-group @handleSetLineChartData="handleSetLineChartData" />
    
    <!-- <el-form ref="testFormRef" :model="testform" :rules="rules" @submit.native="submitForm" >
      <el-form-item prop="username">
        <md-input v-model="testform.username" placeholder="姓名/电话"></md-input>
      </el-form-item>
    </el-form> -->
    <div class="custum-module">
      
    </div>
  </div>
</template>

<script>
import PanelGroup from './dashboard/PanelGroup'
import MdInput from '@/components/MaterialDesign/Input'
export default {
  name: 'Index',
  components: {
    PanelGroup,
    MdInput
  },
  data() {
    return {
      testform:{
        username: "",
        password: "123321",
        validcode: ""
      },
      rules:{
        username: [
          { required: true, message: '请输入用户名', trigger: 'blur' },
        ],
      }
    }
  },
  methods: {
    submitForm(e){
      e.preventDefault();
      this.$refs["testFormRef"].validate((valid) => {
        if (valid) {
          alert('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    },
    handleSetLineChartData(){

    }
  },
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  // background-color: rgb(240, 242, 245);
  position: relative;
  height: 100%;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
